package com.payfen.dao.impl;

import org.springframework.orm.ibatis.support.SqlMapClientDaoSupport;

import com.payfen.dao.inf.ExchangeRateDao;
import com.payfen.ibatis.domain.ExchangeRate;

/**
 * 汇率Dao的实现类
 * 
 * @author Rex_xu
 * 
 */
public class ExchangeRateDaoImpl extends SqlMapClientDaoSupport implements
		ExchangeRateDao {

	public void deleteExchangeRate(int id) throws Exception {
		this.getSqlMapClientTemplate().delete("exchange_rate.delete", id);
	}

	public void insertExchangeRate(ExchangeRate er) throws Exception {
		this.getSqlMapClientTemplate().insert("exchange_rate.insert", er);
	}

	public void updateExchangeRate(ExchangeRate er) throws Exception {
		this.getSqlMapClientTemplate().update("exchange_rate.update", er);
	}

}
